package com.ruoyi.common.core.domain.dto;

import com.ruoyi.common.annotation.Excel;

/**
 * 导出用户时需要一并导出的角色信息
 *
 * @author 刘逸晖
 */
public class UserExportRole {
    private static final long serialVersionUID = 1L;

    //莫名其妙，第一个字段的值就是导出不到文件里
    //将角色列表放在最后一列就解决了
//        @Excel(name = "占位符")
//        private String flag="占位符";

    /**
     * 角色名称
     */
    @Excel(name = "角色名称")
    private String roleName;

    /**
     * 角色权限
     */
    @Excel(name = "角色权限", type = Excel.Type.EXPORT)
    private String roleKey;

    /**
     * 角色状态（0正常 1停用）
     */
    @Excel(name = "角色状态", readConverterExp = "0=正常,1=停用", type = Excel.Type.EXPORT)
    private String status;

    public String getRoleName() {
        return this.roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleKey() {
        return roleKey;
    }

    public void setRoleKey(String roleKey) {
        this.roleKey = roleKey;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ExportableRole{" +
                "roleName='" + roleName + '\'' +
                ", roleKey='" + roleKey + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
